package team.hyznrj.studentsys.exception;

import lombok.Getter;
import team.hyznrj.studentsys.enums.FileEnum;

/**
 * @author ReMidDream
 * @date 2018-04-11 21:04
 **/
@Getter
public class FileException extends RuntimeException {

    private Integer code;

    public FileException(FileEnum fileEnum) {
        super(fileEnum.getMessage());
        this.code = fileEnum.getCode();
    }
}
